package com.somnus.androidkotlindemo.bean

import java.io.Serializable

/**
 * Created by Somnus on 2017/6/13.
 * @Description:
 */
data class KotlinBean(var name: String, var id: Int) : Serializable


class UserBean : Serializable {
    var name: String? = ""
    var age: Int = 0
    var id: Int = -1
    constructor()

    constructor(name: String) {
        this.name = name
    }

    constructor(name: String, id: Int) {
        this.name = name
        this.id = id
    }

    override fun toString(): String {
        return "User(name=$name, age=$age, id=$id)"
    }

}